Automated Test Data Generation with SAT

نویسندگان

  • Robert Seater
  • Gregory Dennis
چکیده

We present a novel technique for automatically generating a suite of test inputs to an object­oriented procedure. The suite is guaranteed to kill all mutant procedures produced from a given catalog of mutation operators, so long as those mutants could be detected by some test within user­provided bounds. Our test input generator constructs a mutation­parameterized version of the procedure, whose behavior may differ from the original by a single mutation. It encodes the original and mutation­parameterized procedures in a first­order rela­ tional formula, a solution to which includes both a mutation and a test input that detects it. Our tool iteratively invokes a constraint­solver to find such tests and adds them to the test suite. After each iteration, it amends the formula to ensure the next mutant found was not killed by a previous input. This process is repeated until the formula becomes unsatisfiable, at which point all mutants have been detected. We evaluate an implementation of this technique on a series of small benchmarks.

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

SAT Based Automated Test Case Generation For MUMCUT Coverage

MUMCUT is a criterion for testing Boolean specifications. The traditional test case generation methods for this problem are based on approximate approaches. The efficiency of these algorithms depend on the designers’ experience on this coverage. In this paper, the authors apply SAT based method to solve this problem. Two SAT solvers, walksat and zChaff, are employed to generate approximate and ...

متن کامل

SAT, SMT and Applications

SAT solving has gained tremendous interest. On the practical side there have been considerable performance improvements, due to new highly efficient algorithms, new heuristics, and optimized data structures. There are new applications and reformulations of important classical problems, mainly in the context of formal methods, where SAT solving is also applied successfully in an industrial setti...

متن کامل

Learning-oriented Property Decomposition for Automated Generation of Directed Tests

SAT-based Bounded Model Checking (BMC) is promising for automated generation of directed tests. Due to the state space explosion problem, SAT-based BMC is unsuitable to handle complex properties with large SAT instances or large bounds. In this paper, we propose a framework to automatically scale down the SAT falsification complexity by utilizing the decision ordering based learning from decomp...

متن کامل

Generating Structurally Complex Tests from Declarative Constraints

This dissertation describes a method for systematic constraint-based test generation for programs that take as inputs structurally complex data, presents an automated SAT-based framework for testing such programs, and provides evidence on the feasibility of using this approach to generate high quality test suites and find bugs in non-trivial programs. The framework tests a program systematicall...

متن کامل

Logical Cryptanalysis as a SAT Problem ? Encoding and Analysis of the U.S. Data Encryption Standard

Cryptographic algorithms play a key role in computer security and the formal analysis of their robustness is of utmost importance. Yet, logic and automated reasoning tools are seldom used in the analysis of a cipher, and thus one cannot often get the desired formal assurance that the cipher is free from unwanted properties that may weaken its strength. In this paper, we claim that one can feasi...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2005